import models
from models import User


# 根据id查询user

def get_user_by_id(id):
    user = models.User.query.filter_by(id=id).first()
    return user
